package icegps.com.pingdj.adapter;


import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import icegps.com.pingdj.R;
import icegps.com.pingdj.map.bean.MapMeasureInfo;
import icegps.com.pingdj.utils.DateFormat;

/**
 * Created by 111 on 2017/12/28.
 */

public class MeasureDataAdapter extends BaseQuickAdapter<MapMeasureInfo, BaseViewHolder> {


    public MeasureDataAdapter(int layoutResId, @Nullable List<MapMeasureInfo> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, MapMeasureInfo infoAndConfig) {
        helper.setText(R.id.tv_time, DateFormat.time2Date(infoAndConfig.getId()));
    }
}
